//
//  DataModel.swift
//  DetailList
//
//  Created by mayuncui on 2020/9/21.
//  Copyright © 2020 Myc. All rights reserved.
//

import UIKit
import HandyJSON

enum ContentType: String, HandyJSONEnum {
    case text = "text"
    case img = "img"
    case text_img = "text-img"
    case text_link = "text-link"
    
}

struct BaseModel: HandyJSON {
    var code: Int?
    var msg: String?
    var data: [DataModel]?
    
}

struct DataModel: HandyJSON {
    var id: Int?
    var type: ContentType?
    var content: String?
    var imgUrls: [String]?
    var link: String?
}


